using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace WPCoco.Tasks
{
    public class Skew : InstantTask<IAffine>
    {
        public Skew(Vector2 skew)
        {
            Value = skew;
        }

        Vector2 skew;

        public Vector2 Value
        {
            get { return skew; }
            set { skew = value; }
        }

        public override void InitializeWithTarget(IAffine target)
        {
            
        }

        public override void UpdateWithTarget(IAffine target, float time)
        {
            target.Skew = skew;
        }

        public override Task Clone()
        {
            return new Skew(skew);
        }
    }
}
